package com.jingjiu.homeservicesbiz.service.impl;

import java.util.List;

import com.jingjiu.homeservicesapi.domain.HouseServiceOrder;
import com.jingjiu.homeservicesbiz.mapper.HouseServiceOrderMapper;
import com.jingjiu.homeservicesbiz.service.IHouseServiceOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;

/**
 * 家政订单：记录家政服务的订单详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-16
 */
@Service
public class HouseServiceOrderServiceImpl implements IHouseServiceOrderService
{
    @Autowired
    private HouseServiceOrderMapper houseServiceOrderMapper;

    /**
     * 查询家政订单：记录家政服务的订单详情
     * 
     * @param id 家政订单：记录家政服务的订单详情主键
     * @return 家政订单：记录家政服务的订单详情
     */
    @Override
    public HouseServiceOrder selectHouseServiceOrderById(Long id)
    {
        return houseServiceOrderMapper.selectHouseServiceOrderById(id);
    }

    /**
     * 查询家政订单：记录家政服务的订单详情列表
     * 
     * @param houseServiceOrder 家政订单：记录家政服务的订单详情
     * @return 家政订单：记录家政服务的订单详情
     */
    @Override
    public List<HouseServiceOrder> selectHouseServiceOrderList(HouseServiceOrder houseServiceOrder)
    {
        return houseServiceOrderMapper.selectHouseServiceOrderList(houseServiceOrder);
    }

    /**
     * 新增家政订单：记录家政服务的订单详情
     * 
     * @param houseServiceOrder 家政订单：记录家政服务的订单详情
     * @return 结果
     */
    @Override
    public int insertHouseServiceOrder(HouseServiceOrder houseServiceOrder)
    {
        return houseServiceOrderMapper.insertHouseServiceOrder(houseServiceOrder);
    }

    /**
     * 修改家政订单：记录家政服务的订单详情
     * 
     * @param houseServiceOrder 家政订单：记录家政服务的订单详情
     * @return 结果
     */
    @Override
    public int updateHouseServiceOrder(HouseServiceOrder houseServiceOrder)
    {
        return houseServiceOrderMapper.updateHouseServiceOrder(houseServiceOrder);
    }

    /**
     * 批量删除家政订单：记录家政服务的订单详情
     * 
     * @param ids 需要删除的家政订单：记录家政服务的订单详情主键
     * @return 结果
     */
    @Override
    public int deleteHouseServiceOrderByIds(String ids)
    {
        return 1;
    }

    /**
     * 删除家政订单：记录家政服务的订单详情信息
     * 
     * @param id 家政订单：记录家政服务的订单详情主键
     * @return 结果
     */
    @Override
    public int deleteHouseServiceOrderById(Long id)
    {
        return houseServiceOrderMapper.deleteHouseServiceOrderById(id);
    }
}
